home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / csim / source.lha / source / C++SIM / Examples / Arrivals.h < prev    next >
C/C++ Source or Header  |  1993-06-14  |  480b  |  37 lines

  1. /*
  2.  * Copyright (C) 1993
  3.  *
  4.  * Department of Computing Science,
  5.  * The University,
  6.  * Newcastle upon Tyne,
  7.  * UK.
  8.  */
  9.  
  10. #ifndef ARRIVALS_H_
  11. #define ARRIVALS_H_
  12.  
  13. #ifndef PROCESS_H_
  14. #include <Process.h>
  15. #endif
  16.  
  17. #ifndef RANDOM_H_
  18. #include <Random.h>
  19. #endif
  20.  
  21.  
  22. /* Controls the rate at which Jobs arrive at the Machine */
  23.  
  24. class Arrivals : public Process
  25. {
  26. public:
  27.     Arrivals (double);
  28.     ~Arrivals ();
  29.  
  30.     void Body ();
  31.  
  32. private:
  33.     ExponentialStream* InterArrivalTime;
  34. };
  35.  
  36. #endif
  37.